from aiogram_dialog import Dialog

from poker_bot.tg_bot.dialogs.extras import copy_start_data_to_ctx
from poker_bot.tg_bot.dialogs.getters.deposits import unconfirmed_deposits_getter
from poker_bot.tg_bot.dialogs.reusable_handlers import display_deposit_details
from poker_bot.tg_bot.dialogs.reusable_windows import get_list_window
from poker_bot.tg_bot.states.admin import DepositsForConfirmationSG

deposits_for_confirmation_dialog = Dialog(
    get_list_window(
        "unconfirmed-deposits-msg",
        "№{item.id} {item.summ} {item.currency_symbol} {item.created_at}",
        "unconfirmed_deposits",
        DepositsForConfirmationSG.deposits_list,
        unconfirmed_deposits_getter,
        display_deposit_details,
    ),
    on_start=copy_start_data_to_ctx,
)
